Get Message List
Command Prototype
arrayRet = Outlook.GetMailMessages(account,folder,sfilter,unread,markasread,count)
Command Description
Get the message list in a specified mailbox, and return as an array
Parameter Description
- Required Parameter
- account--Specify the email address to get the mailing list from. It must be the same as the email address bound to Outlook
- folder--Mailbox folders to get, such as "Inbox", "Draft", "Sent Mails", etc
- sfilter--The filter criteria (case sensitive) used to filter eligible messages by message title, content, sender, recipient, CC, and Bcc
- unread--Whether to get unread messages only
- markasread--Whether to mark the obtained unread messages as read
- count--Specify the count of messages to obtain, 0 means to obtain all
- return
- arrayRet--The variable used to save the output of the function call